package com.cee.service.Impl;

import com.cee.dao.ExamManySelectMapper;
import com.cee.dao.ExamOneSelectMapper;
import com.cee.model.ExamManySelect;
import com.cee.model.ExamOneSelect;
import com.cee.service.ExamManySelectService;
import com.cee.service.ExamOneSelectService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Slf4j
@Service
@Transactional
public class ExamManySelectServiceImpl implements ExamManySelectService {

    @Autowired
    private ExamManySelectMapper examManySelectMapper;

    @Override
    public int deleteExamManySelectById(Integer id) {
       return examManySelectMapper.deleteById(id);
    }

    @Override
    public int saveExamManySelect(ExamManySelect examManySelect) {
       return examManySelectMapper.insert(examManySelect);
    }

    @Override
    public List<ExamManySelect> getListByExamId(Integer examId) {
        return examManySelectMapper.getListByExamId(examId);
    }

    @Override
    public void updateExamManySelect(ExamManySelect examManySelect) {
        examManySelectMapper.updateExamManySelect(examManySelect);
    }
}
